package com.HMI;

import java.awt.Graphics;
import javax.swing.JPanel;
import com.Resources.CustomColor;

@SuppressWarnings("serial")
public class AlphaPanel extends JPanel {

	public AlphaPanel(int x, int y, int width, int height) {
		this.setBounds(x, y, width, height);
		this.setOpaque(false);
		this.setBackground(CustomColor.TRANSPARENT_WHITE);
		this.setLayout(null);
	}
	//hello this is maxs comment
	// Override paint component method to ensure updated fields on panel
	// don't leave shadows
	@Override
	protected void paintComponent(Graphics g) {
		g.setColor(getBackground());
		g.fillRect(0, 0, getWidth(), getHeight());
		super.paintComponent(g);
	}

}
